package com.tool;

import com.tool.bean.TableInfo;
import com.tool.builder.BuildClass.*;
import com.tool.builder.BuildHelper.BuildTable;
import com.tool.builder.BuildTemplate.BuildEnum;
import com.tool.builder.BuildTemplate.BuildException;
import com.tool.builder.BuildTemplate.BuildR;
import java.util.List;

/**
 * 用于生成所用类
 */
public class toolApplication {
    public static void main(String[] args) {
        // 获取表信息
        List<TableInfo> tableInfoList = BuildTable.getTable();
        for(TableInfo tableInfo :tableInfoList) {
            BuildPo.execute(tableInfo);
            BuildQuery.execute(tableInfo);
            BuildMapper.execute(tableInfo);
            BuildService.execute(tableInfo);
            BuildServiceImpl.execute(tableInfo);
            BuildController.execute(tableInfo);
        }

        // 创建template的类
        BuildEnum.execute();
        BuildR.execute();
        BuildException.execute();
    }
}
